export class IMClient {
    constructor(tokenP) {
        this.token = tokenP;
    }

    connect() {
        //这里我是写死的，默认用123这个userID去连接。
        this.conn = new WebSocket("ws://127.0.0.1:10009?token=" + this.token)
        //debugger
        this.conn.onopen = () => {
        }

        this.conn.onclose = () => {
        }

        this.conn.onerror = (event) => {
        }
    }
}

